# -*- coding: utf-8 -*-

# Scrapy settings for xs project
#
# For simplicity, this file contains only the most important settings by
# default. All the other settings are documented here:
#
#     http://doc.scrapy.org/en/latest/topics/settings.html
#

BOT_NAME = 'xs'

SPIDER_MODULES = ['xs.spiders']
NEWSPIDER_MODULE = 'xs.spiders'
DEFAULT_ITEM_CLASS = 'xs.items.XsItem'
DUPEFILTER_CLASS = 'xs.duplicate_filter.CustomFilter'
ITEM_PIPELINES = {'xs.pipelines.MongoDBPipeline': 1, 'xs.pipelines.XsPipeline': 2}
# Crawl responsibly by identifying yourself (and your website) on the user-agent
#USER_AGENT = "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/43.0.2357.124 Safari/537.36"
DOWNLOADER_MIDDLEWARES = {
    'Scrapy.contrib.downloadermiddleware.useragent.UserAgentMiddleware': None,
    'xs.random_user_agent.RandomUserAgentMiddleware': 400
}
